home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1666 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: hpscit.sc.hp.com!hp-apd-news!hpsgm1!tanjm
  3. From: tanjm@hpsgrt1.sgp.hp.com (Jin-Meng TAN)
  4. Subject: C programmer confused by streams
  5. Sender: news@news.sgp.hp.com (NEWS ADMIN)
  6. Message-ID: <DL1r9x.HsJ@news.sgp.hp.com>
  7. Date: Fri, 12 Jan 1996 02:37:09 GMT
  8. Nntp-Posting-Host: hpsgrt1.sgp.hp.com
  9. Organization: Hewlett-Packard Singapore 
  10. X-Newsreader: TIN [version 1.2 PL2.2]
  11.  
  12.  
  13. Hi. I've been trying to pick up C++ for a few weeks (part-time) and I think
  14. I've got a handle on a lot of stuff. But the streams library
  15. (specifically the Borland C/C++ 4.5 one) just confuses me.
  16.  
  17. I can vaguely see that streams is potentially very powerful in that any
  18. source/sink of data (console, file, memory etc) can be a stream. The help
  19. isn't very helpful :) either on streams concepts.
  20.  
  21. So I got a few questions :
  22.  
  23. 1) How to get a good book that treats streams well.
  24. 2) Is there an example implementation (or can someone provide one)
  25.    that explains how to implement a class that takes a generic input
  26.    stream and outputs to a generic output stream?
  27. 3) how would you buffer the implementation in (2) given that the rate of
  28.    input isn't equal to the rate of output.
  29. 4) does anyone have (or know where to get) a good concise description of 
  30.    Borland's stream support? Is this support (mostly) available in other 
  31.    C++ suites or will I have to relearn it?
  32.  
  33. Thanks very much in advance for any help.
  34.  
  35. jin meng
  36.